import request from '../http.js'

const api = {
    'getUsePda' :	'/erp/pda/getUsePda',   // 获取当前使用的pda
    'pdadelete': '/erp/pda/delete',	//删除
	'pdapageList': '/erp/pda/pageList',	//获取列表
	'pdasave': '/erp/pda/save',	// pda保存
	'updateStatus': '/erp/pda/updateStatus',	//启用/停用
}

//启用/停用
export function updateStatus(data){ 
	return request({
		url: api.updateStatus,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}

//保存pda
export function pdasave(data){ 
	return request({
		url: api.pdasave,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//获取列表
export function pdapageList(data){ 
	return request({
		url: api.pdapageList,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}


//删除pda
export function pdadelete(data){ 
	return request({
		url: api.pdadelete,
		method: 'POST',
		contentType:'application/json',
		data:data
	})
}


//获取当前使用的pda
export function getUsePda(data){ 
	return request({
		url: api.getUsePda,
		method: 'GET',
		contentType:'application/json',
		data:data
	})
}








